#pragma once

#include <QDialog>
#include <QGraphicsScene>
#include <QGraphicsView>
#include "freehandsnapgraphicsscene.h"
#include "src/tools/capturecontext.h"

class FreeHandCaptureWidget : public QDialog {
    Q_OBJECT

signals:
    void captured(uint, QPixmap);

public:
    explicit FreeHandCaptureWidget(QWidget *parent = nullptr);

private:
    FreeHandSnapGraphicsScene *scene;
    QGraphicsView *graphicsView;
    QPixmap fullScreenPixmap;
    CaptureContext captureContext;

protected:
    void keyPressEvent(QKeyEvent *event);
};